package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 餐馆评论对象 res_review
 * 
 * @author ruoyi
 * @date 2025-06-01
 */
public class ResReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long reviewId;

    /** 餐馆id */
    @Excel(name = "餐馆id")
    private Long resId;

    /** 顾客id */
    @Excel(name = "顾客id")
    private Long customerId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 口味星级 */
    @Excel(name = "口味星级")
    private Long tasteStar;

    /** 服务星级 */
    @Excel(name = "服务星级")
    private Long serviceStar;

    /** 环境星级 */
    @Excel(name = "环境星级")
    private Long environmentStar;

    /** 用户评论星级 */
    @Excel(name = "用户评论星级")
    private BigDecimal userReviewStar;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewTime;

    /** 状态(0已发布 1精选评论 2恶评) */
    @Excel(name = "状态(0已发布 1精选评论 2恶评)")
    private Long status;

    /** 备用字段 */
    @Excel(name = "备用字段")
    private String field;

    /** 关联的餐馆信息 */
    private ResInfo resInfo;

    /** 关联的评论图片信息列表 */
    private List<ResReviewImg> imgList;

    private String nickName;

    private String avatar;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public ResInfo getResInfo() {
        return resInfo;
    }

    public void setResInfo(ResInfo resInfo) {
        this.resInfo = resInfo;
    }

    public List<ResReviewImg> getImgList() {
        return imgList;
    }

    public void setImgList(List<ResReviewImg> imgList) {
        this.imgList = imgList;
    }

    public void setReviewId(Long reviewId)
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }

    public void setResId(Long resId) 
    {
        this.resId = resId;
    }

    public Long getResId() 
    {
        return resId;
    }

    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTasteStar(Long tasteStar) 
    {
        this.tasteStar = tasteStar;
    }

    public Long getTasteStar() 
    {
        return tasteStar;
    }

    public void setServiceStar(Long serviceStar) 
    {
        this.serviceStar = serviceStar;
    }

    public Long getServiceStar() 
    {
        return serviceStar;
    }

    public void setEnvironmentStar(Long environmentStar) 
    {
        this.environmentStar = environmentStar;
    }

    public Long getEnvironmentStar() 
    {
        return environmentStar;
    }

    public void setUserReviewStar(BigDecimal userReviewStar)
    {
        this.userReviewStar = userReviewStar;
    }

    public BigDecimal getUserReviewStar()
    {
        return userReviewStar;
    }

    public void setReviewTime(Date reviewTime) 
    {
        this.reviewTime = reviewTime;
    }

    public Date getReviewTime() 
    {
        return reviewTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setField(String field) 
    {
        this.field = field;
    }

    public String getField() 
    {
        return field;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("resId", getResId())
            .append("customerId", getCustomerId())
            .append("content", getContent())
            .append("tasteStar", getTasteStar())
            .append("serviceStar", getServiceStar())
            .append("environmentStar", getEnvironmentStar())
            .append("userReviewStar", getUserReviewStar())
            .append("reviewTime", getReviewTime())
            .append("status", getStatus())
            .append("field", getField())
            .append("resInfo", getResInfo())
            .append("imgList", getImgList())
            .append("nickName", getNickName())
            .append("avatar", getAvatar())
            .toString();
    }
}
